<?php
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// admin/vcat_$global.php Page have the html Of the admin module                                                                 *\
// Powered by Shumool Information Technology                                                                                     *\
// Contact Data                                                                                                                  *\
// WEb site : http://www.shumool.com                                                                                            *\ // E-mail : info@shumool.com                                                                                                     *\
// Ver 1.00 Demo started at 5/4/2009                                                                                             *\
// Please Don't Remove This Copy rights                                                                                          *\
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
session_start();
include ("../sys/shumool.php");
$redirect="index.php";
dosession($redirect);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>EGYPT CTMC NONWOVENS CO</title>
<link href="css/shumool.css" rel="stylesheet" type="text/css">
<script  language="JavaScript">
function yesorno () 
{ 
x=confirm(" Are you sure you want to delete ");
if (x==true) 
{
return true
}
if (x==false) 
{
return false
}
}
</script>
</head>
<body>
<?php
if (isset($_GET['doo'])=='ed' and isset($_GET['ids']))
{
	echo "<meta http-equiv='Refresh' content='0;url=acat_$global.php?doo=ed&ids=$_GET[ids]'>";
}
else if (isset($_POST['dell']))
{
$hid=count($c)+1;
$con=count($c)+1;
$table='cat_$global';
delete($con,$table,$c);
	echo "<script>alert('Deletion process was successfully');</script>";
	echo "<meta http-equiv='Refresh' content='0;url=vcat_$global.php'>";
 }
else if (isset($_GET['doo'])=='del' and isset($_GET['ids']))
{
$con='id=' . $_GET['ids'];
$table='cat_$global';
delete($con,$table);
	echo "<script>alert('Deletion process was successfully');</script>";
	echo "<meta http-equiv='Refresh' content='0;url=vcat_$global.php'>";
}
else
{
show_cat_$global();
} 
?>
</body>
</html>
